package com.xxmw.transaction;

import com.spring4all.swagger.EnableSwagger2Doc;
import com.xxmw.transaction.common.utils.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = {"com.xxmw.transaction.mapper.**"})
@EnableScheduling
@EnableSwagger2Doc
public class TransactionApplication {

	public static void main(String[] args) {
		ApplicationContext run = SpringApplication.run(TransactionApplication.class, args);
		SpringContextUtil.setApplicationContext(run);
	}

}
